import lockStepPb from './lockStepPb';
import loginPb from './loginPb';
export const MessageMapByCmd = {
  "2_1_c2s": lockStepPb.Game.lock_step_match_c2s,
  "2_1_s2c": lockStepPb.Game.lock_step_match_s2c,
  "2_2_s2c": lockStepPb.Game.lock_step_match_success_s2c,
  "2_3_c2s": lockStepPb.Game.lock_step_change_scene_finish_c2s,
  "2_4_s2c": lockStepPb.Game.lock_step_fight_start_s2c,
  "2_5_c2s": lockStepPb.Game.lock_step_frame_message_c2s,
  "2_6_s2c": lockStepPb.Game.lock_step_one_frame_inputs_s2c,
  "2_7_s2c": lockStepPb.Game.lock_step_adjust_update_time_s2c,
  "2_8_c2s": lockStepPb.Game.lock_step_check_hash_c2s,
  "2_8_s2c": lockStepPb.Game.lock_step_check_hash_s2c,
  "2_9_c2s": lockStepPb.Game.lock_step_reconnect_c2s,
  "2_9_s2c": lockStepPb.Game.lock_step_reconnect_s2c,
  "2_10_s2c": lockStepPb.Game.lock_step_match_fail_s2c,
  "1_1_c2s": loginPb.Game.login_heart_c2s,
  "1_1_s2c": loginPb.Game.login_heart_s2c,
  "1_2_c2s": loginPb.Game.login_auth_c2s,
  "1_2_s2c": loginPb.Game.login_auth_s2c,
  "1_3_c2s": loginPb.Game.login_create_role_c2s,
  "1_3_s2c": loginPb.Game.login_create_role_s2c,
  "1_4_c2s": loginPb.Game.login_choose_role_c2s,
  "1_4_s2c": loginPb.Game.login_choose_role_s2c
};
export const MessageMapByMsgName = {
  [lockStepPb.Game.lock_step_match_c2s.name]: [2, 1, "c2s"],
  [lockStepPb.Game.lock_step_match_s2c.name]: [2, 1, "s2c"],
  [lockStepPb.Game.lock_step_match_success_s2c.name]: [2, 2, "s2c"],
  [lockStepPb.Game.lock_step_change_scene_finish_c2s.name]: [2, 3, "c2s"],
  [lockStepPb.Game.lock_step_fight_start_s2c.name]: [2, 4, "s2c"],
  [lockStepPb.Game.lock_step_frame_message_c2s.name]: [2, 5, "c2s"],
  [lockStepPb.Game.lock_step_one_frame_inputs_s2c.name]: [2, 6, "s2c"],
  [lockStepPb.Game.lock_step_adjust_update_time_s2c.name]: [2, 7, "s2c"],
  [lockStepPb.Game.lock_step_check_hash_c2s.name]: [2, 8, "c2s"],
  [lockStepPb.Game.lock_step_check_hash_s2c.name]: [2, 8, "s2c"],
  [lockStepPb.Game.lock_step_reconnect_c2s.name]: [2, 9, "c2s"],
  [lockStepPb.Game.lock_step_reconnect_s2c.name]: [2, 9, "s2c"],
  [lockStepPb.Game.lock_step_match_fail_s2c.name]: [2, 10, "s2c"],
  [loginPb.Game.login_heart_c2s.name]: [1, 1, "c2s"],
  [loginPb.Game.login_heart_s2c.name]: [1, 1, "s2c"],
  [loginPb.Game.login_auth_c2s.name]: [1, 2, "c2s"],
  [loginPb.Game.login_auth_s2c.name]: [1, 2, "s2c"],
  [loginPb.Game.login_create_role_c2s.name]: [1, 3, "c2s"],
  [loginPb.Game.login_create_role_s2c.name]: [1, 3, "s2c"],
  [loginPb.Game.login_choose_role_c2s.name]: [1, 4, "c2s"],
  [loginPb.Game.login_choose_role_s2c.name]: [1, 4, "s2c"]
};
export const enum PbCmd {
  lock_step_match_c2s = "lock_step_match_c2s",
  lock_step_match_s2c = "lock_step_match_s2c",
  lock_step_match_success_s2c = "lock_step_match_success_s2c",
  lock_step_change_scene_finish_c2s = "lock_step_change_scene_finish_c2s",
  lock_step_fight_start_s2c = "lock_step_fight_start_s2c",
  lock_step_frame_message_c2s = "lock_step_frame_message_c2s",
  lock_step_one_frame_inputs_s2c = "lock_step_one_frame_inputs_s2c",
  lock_step_adjust_update_time_s2c = "lock_step_adjust_update_time_s2c",
  lock_step_check_hash_c2s = "lock_step_check_hash_c2s",
  lock_step_check_hash_s2c = "lock_step_check_hash_s2c",
  lock_step_reconnect_c2s = "lock_step_reconnect_c2s",
  lock_step_reconnect_s2c = "lock_step_reconnect_s2c",
  lock_step_match_fail_s2c = "lock_step_match_fail_s2c",
  login_heart_c2s = "login_heart_c2s",
  login_heart_s2c = "login_heart_s2c",
  login_auth_c2s = "login_auth_c2s",
  login_auth_s2c = "login_auth_s2c",
  login_create_role_c2s = "login_create_role_c2s",
  login_create_role_s2c = "login_create_role_s2c",
  login_choose_role_c2s = "login_choose_role_c2s",
  login_choose_role_s2c = "login_choose_role_s2c"
};
